package com.lin.cms.base;

import java.io.Serializable;

import com.lin.cms.util.Paging;

public class Criteria implements Serializable {

	private static final long serialVersionUID = 1L;

	protected Paging paging;

	private String mode;
	
	private boolean distinct;
	
	private String orderByClause;

	public Criteria() {
		this(new Paging());
	}

	public Criteria(int maxResults, int pagingLinks) {
		this(new Paging(maxResults, pagingLinks));
	}

	public Criteria(Paging paging) {
		this.paging = paging;
	}

	public Paging getPaging() {
		return paging;
	}

	public void setPaging(Paging paging) {
		this.paging = paging;
	}

	public String getMode() {
		return mode;
	}
	
	public String getOrderByClause() {
		return orderByClause;
	}

	public void setOrderByClause(String orderByClause) {
		this.orderByClause = orderByClause;
	}

	public void setMode(String mode) {
		this.mode = mode;
	}
	public boolean isDistinct() {
		return distinct;
	}
	public void setDistinct(boolean distinct) {
		this.distinct = distinct;
	}
	
}
